package com.ansorgit.helpful.configuration;

import com.ansorgit.helpful.PsiClassname;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 * User: jansorg
 * Date: Mar 22, 2010
 * Time: 9:15:58 PM
 */
public class Settings implements Serializable {
    public List<PsiClassname> configuredClasses = new LinkedList<PsiClassname>();

    public boolean isClassEnabled(PsiClassname clazz) {
        return configuredClasses.contains(clazz);
    }

    public boolean enable(PsiClassname clazz) {
        return configuredClasses.add(clazz);
    }

    public boolean disable(PsiClassname clazz) {
        return configuredClasses.remove(clazz);
    }
}
